module.exports = {
    userFormateError: {
        code: '10001',
        message: '用户名或密码为空',
        result: ''
    },
    userAlreadyExist: {
        code: '10002',
        message: '用户已存在',
        result: ''
    },
    userRegisterError: {
        code: '10003',
        message: '用户注册错误',
        result: ''
    },
    userDoesNotExist: {
        code: '10004',
        message: '用户不存在',
        result: ''
    },
    userLoginError: {
        code: '10005',
        message: '用户登录失败',
        result: ''
    },
    invalidPassswordError: {
        code: '10006',
        message: '密码不匹配',
        result: ''
    },
    tokenExpiredError: {
        code: '10101',
        message: 'token已过期',
        result: ''
    },
    invalidToken: {
        code: '10102',
        message: 'token无效',
        result: ''
    },
    hasNotAdminPermission: {
        code: '10103',
        message: '没有管理员权限',
        result: ''
    },
    fileUploadError: {
        code: '10201',
        message: '商品图片上传失败',
        result: ''
    },
    unSupportedFileType: {
        code: '10202',
        message: '不支持的文件格式',
        result: ''
    },
    goodsFormatErro: {
        code: '10203',
        message: '商品参数格式错误',
        result: ''
    },
    publishGoodsErro: {
        code: '10204',
        message: '发布商品失败',
        result: ''
    },
    invalidGoodsID: {
        code: '10205',
        message: '待修改商品信息不存在',
        result: ''
    },
    removeGoodsID: {
        code: '10206',
        message: '待删除的商品数据不存在',
        result: ''
    },
    offGoodsID: {
        code: '10206',
        message: '无效的商品id',
        result: ''
    },
    findGoodsErr: {
        code: '10207',
        message: '获取商品失败',
        result: ''
    },
    cartFormatError: {
        code: '10301',
        message: '购物车数据格式错误',
        result: ''
    },
    addrFormatError: {
        code: '10401',
        message: '地址数据格式错误',
        result: ''
    },
    orderFormatError: {
        code: '10501',
        message: '订单数据格式错误',
        result: ''
    },
}